function formatDate(time) {
	let date = new Date(parseInt(time) * 1000),
		YY = date.getFullYear() + "-",
		MM = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) + "-",
		DD = date.getDate() < 10 ? "0" + date.getDate() : date.getDate(),
		hh = (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":",
		mm = (date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()) + ":",
		ss = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
	return YY + MM + DD + " " + hh + mm + ss;
}
export default formatDate